Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Runtime.Serialization
Namespace C4F.DevKit.DesktopSearch
    ''' <summary>
    ''' The exception is thrown when an error occures while doing desktop search. 
    ''' </summary>
    <Serializable()> _
    Public Class DesktopSearchException
        Inherits Exception
        ''' <summary>
        ''' Initializes a new instance of the DesktopSearchException class.
        ''' </summary>
        Public Sub New()
            MyBase.New()
        End Sub
        ''' <summary>
        ''' Initializes a new instance of the DesktopSearchException class with a 
        ''' specified error message.
        ''' </summary>
        ''' <param name="message">The message that describes the error.</param>
        Public Sub New(ByVal message As String)
            MyBase.New(message)
        End Sub
        ''' <summary>
        ''' Initializes a new instance of the DesktopSearchException class with a 
        ''' specified error message and Inner Exception.
        ''' </summary>
        ''' <param name="message">
        ''' The message that describes the error.
        ''' </param>
        ''' <param name="innerException">
        ''' The message that describes the innerException.
        ''' </param>
        Public Sub New(ByVal message As String, ByVal innerException As Exception)
            MyBase.New(message, innerException)
        End Sub
        ''' <summary>
        ''' Initializes a new instance of the DesktopSearchException class with a 
        ''' specified SerializationInfo and context.
        ''' </summary>
        ''' <param name="info">
        ''' Specifies the serialization information.
        ''' </param>
        ''' <param name="context">
        ''' The message that describes the context of the exception.
        ''' </param>
        Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
            MyBase.New(info, context)
        End Sub
    End Class
End Namespace
